
/*html5手机滑动js插件*/
$(function(){
	
	
	$(".pagebox").css("height",$(window).height());
	var headerh=$(".navbar").outerHeight(true);
	var munuh=$(window).height()-196;
	$(".nemuinfo").css("height",munuh);
    
		var gallery = $('.swiper-container').swiper({
		/*slidesPerView:'auto',*/
		/*watchActiveIndex: true,*/
		/*centeredSlides: true,*/
		pagination:'.pagination',
		paginationClickable: true,
		/*resizeReInit: true,*/
		/*keyboardControl: true,*/
		/*grabCursor: true,*/
		/*onImagesReady: function(){
			changeSize()
		}*/
	});



	
	//Init Navigation
	var nav = $('.swiper-nav').swiper({
		slidesPerView: 'auto',
		freeMode:true,
		freeModeFluid:true,
		/*onSlideClick: function(nav){
			pages.swipeTo( nav.clickedSlideIndex )
		}*/
	});

	//Function to Fix Pages Height
	function fixPagesHeight() {
		$('.swiper-pages').css({
			height: $(window).height()
		});
	}
	$(window).on('resize',function(){
		fixPagesHeight();
	});
	fixPagesHeight();

	//Init Pages
	var pages = $('.swiper-pages').swiper();
	
	$(window).resize(function(){
		gallery.resizeFix(true)	;
	});
		
	
//	//Init Navigation
//	var nav = $('.swiper-nav').swiper({
//		slidesPerView: 'auto',
//		freeMode:true,
//		freeModeFluid:true,
//		/*onSlideClick: function(nav){
//			pages.swipeTo( nav.clickedSlideIndex )
//		}*/
//	})
//
//	//Function to Fix Pages Height
//	function fixPagesHeight() {
//		$('.swiper-pages').css({
//			height: $(window).height()
//		})
//	}
//	$(window).on('resize',function(){
//		fixPagesHeight()
//	})
//	fixPagesHeight()
//
//	//Init Pages
//	var pages = $('.swiper-pages').swiper()
//
//	//Scroll Containers
//	$('.scroll-container').each(function(){
//		$(this).swiper({
//			mode:'vertical',
//			scrollContainer: true,
//			mousewheelControl: true,
//			scrollbar: {
//				container:$(this).find('.swiper-scrollbar')[0]
//			}
//		})
//	})
//
//	//Gallery
///*	var swiperGallery = $('.swiper-gallery').swiper({
//		mode: 'vertical',
//		slidesPerView: 'auto',
//		freeMode: true,
//		freeModeFluid: true,
//		scrollbar: {
//			container:$('.swiper-gallery .swiper-scrollbar')[0]
//		}
//	})*/
//	swiperGallery.reInit()

});